<template>
  <div
    style="
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    "
  >
    <h1>您好，{{ info.userAccount }}，欢迎使用 {{ clientName }}</h1>
  </div>
</template>
<script>
import { getInfo } from '../api/loginUser'

export default {
  name: 'Index',
  data() {
    return {
      info: {},
    }
  },
  computed: {
    clientName() {
      return window.client.clientName
    },
  },
  mounted() {
    getInfo().then((res) => {
      this.info = res.data.data
    })
  },
}
</script>
